/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Role Class Passive Member3</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getRoleClassPassiveMember3()
 * @model extendedMetaData="name='RoleClassPassive_._member_._3'"
 * @generated
 */
public enum RoleClassPassiveMember3 implements Enumerator {
	/**
	 * The '<em><b>ADMM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ADMM_VALUE
	 * @generated
	 * @ordered
	 */
	ADMM(0, "ADMM", "ADMM"),

	/**
	 * The '<em><b>ACCESS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #ACCESS_VALUE
	 * @generated
	 * @ordered
	 */
	ACCESS(1, "ACCESS", "ACCESS"),

	/**
	 * The '<em><b>BIRTHPL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BIRTHPL_VALUE
	 * @generated
	 * @ordered
	 */
	BIRTHPL(2, "BIRTHPL", "BIRTHPL"),

	/**
	 * The '<em><b>EXPR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #EXPR_VALUE
	 * @generated
	 * @ordered
	 */
	EXPR(3, "EXPR", "EXPR"),

	/**
	 * The '<em><b>HLTHCHRT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HLTHCHRT_VALUE
	 * @generated
	 * @ordered
	 */
	HLTHCHRT(4, "HLTHCHRT", "HLTHCHRT"),

	/**
	 * The '<em><b>HLD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #HLD_VALUE
	 * @generated
	 * @ordered
	 */
	HLD(5, "HLD", "HLD"),

	/**
	 * The '<em><b>IDENT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #IDENT_VALUE
	 * @generated
	 * @ordered
	 */
	IDENT(6, "IDENT", "IDENT"),

	/**
	 * The '<em><b>MNT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #MNT_VALUE
	 * @generated
	 * @ordered
	 */
	MNT(7, "MNT", "MNT"),

	/**
	 * The '<em><b>OWN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #OWN_VALUE
	 * @generated
	 * @ordered
	 */
	OWN(8, "OWN", "OWN"),

	/**
	 * The '<em><b>RGPR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #RGPR_VALUE
	 * @generated
	 * @ordered
	 */
	RGPR(9, "RGPR", "RGPR"),

	/**
	 * The '<em><b>TERR</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #TERR_VALUE
	 * @generated
	 * @ordered
	 */
	TERR(10, "TERR", "TERR"),

	/**
	 * The '<em><b>WRTE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #WRTE_VALUE
	 * @generated
	 * @ordered
	 */
	WRTE(11, "WRTE", "WRTE");

	/**
	 * The '<em><b>ADMM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ADMM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ADMM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ADMM_VALUE = 0;

	/**
	 * The '<em><b>ACCESS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>ACCESS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #ACCESS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int ACCESS_VALUE = 1;

	/**
	 * The '<em><b>BIRTHPL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BIRTHPL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BIRTHPL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BIRTHPL_VALUE = 2;

	/**
	 * The '<em><b>EXPR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>EXPR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #EXPR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int EXPR_VALUE = 3;

	/**
	 * The '<em><b>HLTHCHRT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HLTHCHRT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HLTHCHRT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int HLTHCHRT_VALUE = 4;

	/**
	 * The '<em><b>HLD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>HLD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #HLD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int HLD_VALUE = 5;

	/**
	 * The '<em><b>IDENT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>IDENT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #IDENT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int IDENT_VALUE = 6;

	/**
	 * The '<em><b>MNT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>MNT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #MNT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int MNT_VALUE = 7;

	/**
	 * The '<em><b>OWN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>OWN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #OWN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int OWN_VALUE = 8;

	/**
	 * The '<em><b>RGPR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>RGPR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #RGPR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int RGPR_VALUE = 9;

	/**
	 * The '<em><b>TERR</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>TERR</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #TERR
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int TERR_VALUE = 10;

	/**
	 * The '<em><b>WRTE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>WRTE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #WRTE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int WRTE_VALUE = 11;

	/**
	 * An array of all the '<em><b>Role Class Passive Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final RoleClassPassiveMember3[] VALUES_ARRAY =
		new RoleClassPassiveMember3[] {
			ADMM,
			ACCESS,
			BIRTHPL,
			EXPR,
			HLTHCHRT,
			HLD,
			IDENT,
			MNT,
			OWN,
			RGPR,
			TERR,
			WRTE,
		};

	/**
	 * A public read-only list of all the '<em><b>Role Class Passive Member3</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<RoleClassPassiveMember3> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Role Class Passive Member3</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassPassiveMember3 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RoleClassPassiveMember3 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Role Class Passive Member3</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassPassiveMember3 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			RoleClassPassiveMember3 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Role Class Passive Member3</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static RoleClassPassiveMember3 get(int value) {
		switch (value) {
			case ADMM_VALUE: return ADMM;
			case ACCESS_VALUE: return ACCESS;
			case BIRTHPL_VALUE: return BIRTHPL;
			case EXPR_VALUE: return EXPR;
			case HLTHCHRT_VALUE: return HLTHCHRT;
			case HLD_VALUE: return HLD;
			case IDENT_VALUE: return IDENT;
			case MNT_VALUE: return MNT;
			case OWN_VALUE: return OWN;
			case RGPR_VALUE: return RGPR;
			case TERR_VALUE: return TERR;
			case WRTE_VALUE: return WRTE;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private RoleClassPassiveMember3(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //RoleClassPassiveMember3
